#include <stdio.h>
#include <stdlib.h>

int main()
{
	int i;
	int *ptr1;
	int *ptr2;

	ptr1 = (int*)calloc(100, sizeof(int));
	ptr2 = (int*)malloc(100 * sizeof(int));

	if ( ptr1 == NULL || ptr2 == NULL )
	{
		printf("out of memory!!\n");
		exit(0);
	}

	for ( i=0; i<100; i++ )
		printf("ptr1[%d] : [%d]\n", i, ptr1[i]);

	printf("\n\n");

	for ( i=0; i<100; i++ )
		printf("ptr2[%d] : [%d]\n", i, ptr2[i]);

	return 0;
}

